<%@page import="java.util.*"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" isErrorPage="true"  %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
		//TODO连接数据库 MOCK
		List<HashMap> mlist = new ArrayList<HashMap>();
		HashMap<String,String> map1 = new HashMap<>();
		mlist.add(map1);
		map1.put("key", "DL2001");
		
		HashMap<String,String> map2 = new HashMap<>();
		mlist.add(map2);
		map2.put("key", "DL2002");
		
		HashMap<String,String> map3 = new HashMap<>();
		mlist.add(map3);
		map3.put("key", "DL2003");
		
		request.setAttribute("slist", mlist);

%>
 		<select id="clazz" name="clazzz">
 			<c:if test="${!empty slist}">
	 			<c:forEach items="${slist}" var="temp" varStatus="stute">
					<option value="${stute.index}">${temp.key}</option>
				</c:forEach>
 			</c:if>
        </select>
</body>
</html>